package com.yl.auth.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.vo.HushiceliangVo;
import com.yl.auth.service.HushiceliangService;
import com.yl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author L
 * @since 2023-07-21
 */
@RestController
@RequestMapping("/admin/auth/hushiceliang")
@Api(tags = "医护管理-护士测量记录")
public class HushiceliangController {
    @Resource
    private HushiceliangService hushiceliangService;


    /**
     * 血压记录
     */
    @ApiOperation(value = "血压记录")
    @GetMapping("/getXueya/{page}/{limit}")
    public Result getXueya(@PathVariable Long page,
                           @PathVariable Long limit){
        Page<HushiceliangVo> page1=new Page<>(page,limit);
        Page<HushiceliangVo> list=hushiceliangService.getXueya(page1);
        return Result.ok(list);
    }

    /**
     * 血糖记录
     */
    @ApiOperation(value = "血糖记录")
    @GetMapping("/getXuetang/{page}/{limit}")
    public Result getXuetang(@PathVariable Long page,
                             @PathVariable Long limit){
        Page<HushiceliangVo> page1=new Page<>(page,limit);
        Page<HushiceliangVo> list=hushiceliangService.getXuetang(page1);
        return Result.ok(list);
    }

    /**
     * 体温记录
     */
    @ApiOperation(value = "体温记录")
    @GetMapping("/getTiwen/{page}/{limit}")
    public Result getTiwen(@PathVariable Long page,
                             @PathVariable Long limit){
        Page<HushiceliangVo> page1=new Page<>(page,limit);
        Page<HushiceliangVo> list=hushiceliangService.getTiwen(page1);
        return Result.ok(list);
    }
}

